package com.itheima.consumer.feign.fallback;

import com.itheima.consumer.feign.UserFeignClient;
import lombok.extern.apachecommons.CommonsLog;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @作者 itcast
 * @创建日期 2021/4/5 10:58
 **/
@Component
public class UserFeignClientImpl implements UserFeignClient {
    @Override
    public Map queryById(String username) {
        Map map = new HashMap();
        map.put("msg","feign服务降级: 服务出现异常,请稍后重试");
        return map;
    }
    @Override
    public String save(Map user) {
        return null;
    }
    @Override
    public String delete(String username) {
        return null;
    }
}
